public class Hotel {
    private String name;
    private int rating;
    private int weekdayReg;
    private int weekdayRes;
    private int weekendReg;
    private int weekendRes;

    public Hotel(String name, int rating, int weekdayReg, int weekdayRes, int weekendReg, int weekendRes) {
        this.name = name;
        this.rating = rating;
        this.weekdayReg = weekdayReg;
        this.weekdayRes = weekdayRes;
        this.weekendReg = weekendReg;
        this.weekendRes = weekendRes;
    }

    public String name() {
        return name;
    }

    public int rating() {
        return rating;
    }

    public int rate(String customerType, String dayType){
        if(customerType.equals("Regular") && dayType.equals("weekday"))
            return weekdayReg;
        if(customerType.equals("Reserved") && dayType.equals("weekday"))
            return weekdayRes;
        if(customerType.equals("Regular") && dayType.equals("weekend"))
            return weekendReg;
        if(customerType.equals("Reserved" )&& dayType.equals("weekend"))
            return weekendRes;
        return 0;
    }

}
